//
// Created by easy on 23-5-10.
//

#ifndef CS_TEST3_TRANSCJSON_H
#define CS_TEST3_TRANSCJSON_H

#endif //CS_TEST3_TRANSCJSON_H

#include <iostream>
#include <string>
#include <time.h>

//对collect_data函数接受的数据做必要处理
class Transcjson {
public:
    Transcjson(char *token,int station);

    ~Transcjson();
    std::string deal(char *str);

    int code;
    char *token;
    int station;
    int time_;
    double temperature;
    double humidity;
    double speed;
    double direction;
    double rain;
    double sunlight;
    double pm25;
    double pm10;
};